package xuanke2;
import java.util.Arrays;
import java.util.Objects;
public class student extends people {
	
	
		    public student(int id,String name,String gender,lesson[] lesson1) {
			this.id = id;
			this.name = name;
			this.gender= gender;
			this.lesson1 = lesson1;
		    }
			
		    void xuanke(lesson t) {
		    	for(int i=0;i<this.lesson1.length;i++){
		    		if (lesson1[i]==null) {
		    		lesson1[i]=t;
		    		break;
		    		}
		    	}		
		    }
			void tuike(lesson l) {
				lesson1 = Arrays.copyOf(lesson1, lesson1.length-1);	
}
}
